// 使用 Mock
var Mock = require('mockjs')

const Random = Mock.Random

//console.log('Random',Random)

function getList(){
    let dataList = []
    for(let i=0;i<1000;i++){
        let newData = {
            id:Random.id(),
            title:Random.csentence(5,30),
            pic:Random.dataImage('250x250'),
            date:Random.date()
        }
        dataList.push(newData)
    }
    return dataList
}

const data = Mock.mock('/getlist',getList)

export default {data}

